{% if is_paginated %}
<div class="pagination">
    Paginas: 
    {% if page_obj.has_previous %}
        <a class="prev" href="?page={{ page_obj.previous_page_number }}{{ getvars }}{{ hashtag }}">&laquo; Anterior</a>
    {% endif %}
    {% for page in pages %}
        {% if page %}
            {% if page == page_obj.number %}
                <strong class="current page">{{ page }}</strong> -
            {% else %}
                <a href="?page={{ page }}{{ getvars }}{{ hashtag }}" class="page">{{ page }}</a>{% if not forloop.last %}-{% endif %}
            {% endif %}
        {% endif %}
    {% endfor %}
    {% if page_obj.has_next %}
        <a class="next" href="?page={{ page_obj.next_page_number }}{{ getvars }}{{ hashtag }}">&raquo; Siguiente</a>
    {% endif %}
</div>
{% endif %}
